package com.lanou.zhihu.mapper;

import com.lanou.zhihu.entity.User;

import java.util.Map;

/**
 * Created by QuChao on 2018/10/24.
 */
public interface UserMapper {
    User findByUsername(String username);

    Integer insert(User user);

    User personal_information(String username);

    //User getByNameAndPwd(String username, String password);

    User login(Map<String, Object> map);

    User changePassword(Map<String, Object> map);

    void register(Map<String, Object> map);

    User register1(Integer id);


    Integer change(Map<String, Object> map);

    int changepass(Map<String, Object> map);


    void modifyThePicture(Map<String, Object> map);

    User findById(Integer id);
}
